<template>
    <el-menu :default-active="activeIndex" class="el-menu-demo" mode="horizontal">
        <el-menu-item index="1" @click="goTo('/admin/category/article/'+categoryId)">文章</el-menu-item>
        <el-menu-item index="2" @click="goTo('/admin/category/video/'+categoryId)">视频</el-menu-item>
        <!--<el-menu-item index="3" @click="goTo('/admin/category/official-account/'+categoryId)">公众号</el-menu-item>
        <el-menu-item index="4" @click="goTo('/admin/category/dy-ks-account/'+categoryId)">视频号</el-menu-item>-->
    </el-menu>
</template>

<script>
    export default {
        name: "CategoryMenuComponent",
        props: ['activeIndex', 'categoryId'],
        methods:{
            goTo(url){
                window.location.href = url;
            }
        }
    }
</script>

<style scoped>

</style>
